for i in range(-3,4):
    print(" "*(3-abs(i))+"*"*(2*abs(i)+1))

print("-"*50)

num = int(input("请输入要生生成的总行数（奇数）:"))
for i in range(-(num//2), ((num+1)//2)):
    print(" "*(3-abs(i))+"*"*(2*abs(i)+1))